package com.haoran.grope.server;

import java.util.concurrent.TimeUnit;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitMQServer2 {

	@RabbitListener(queues = "usm")
	public void receive(String message) throws InterruptedException {
		System.out.println("---RabbitMQServer2-----receive ------- " + message);
	}
	
	
	@RabbitListener(queues = "usm")
	public void receive1(String message) throws InterruptedException {
		System.out.println("---RabbitMQServer2-----receive ------- " + message);
	}
	
}